package com.itheima.homework;

public class Test6 {
    public static void main(String[] args) {
        int[] arr = {68, 27, 95, 88, 171, 996, 51, 210};
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] % 2 == 0) {    //先考虑是偶数
                if ((arr[i] % 10 != 7) && (arr[i] / 10 % 7 != 7)) {
                    sum += arr[i];
                }
            }
        }
        System.out.println("满足要求的元素和为: " + sum);

    }
}
